<?php
declare(strict_types=1);

namespace WebApp\lib\exception;

use Exception;
use Throwable;

/**
 * Class ParamErrorException
 * @package txz\common\third_lib\model\exception
 */
class ClientOkException extends Exception
{
    const KEY = "ClientOkException_bridge";

    public function __construct($message = "", $code = 0, Throwable $previous = null) {
        $GLOBALS[ClientOkException::KEY] = $message;
        $msg = ClientOkException::KEY;
        parent::__construct($msg, $code, $previous);
    }

    static function getData() {
        return $GLOBALS[ClientOkException::KEY];
    }
}
